﻿namespace Wireframe
{
    /// <summary>
    ///     Generic class for event message data.
    /// </summary>
    /// <typeparam name="T">Event argument type.</typeparam>
    public abstract class EventMessage<T>
    {
        /// <summary>
        ///     Initializes new instance of event data.
        /// </summary>
        /// <param name="value">Event argument data.</param>
        protected EventMessage(T value)
        {
            Value = value;
        }

        /// <summary>
        ///     Event argument data.
        /// </summary>
        public T Value { get; private set; }
    }
}